#coding=utf-8

from django.middleware.csrf import CsrfViewMiddleware
from django.utils.deprecation import MiddlewareMixin
from django.shortcuts import render, HttpResponse

class Row1(MiddlewareMixin):
	def process_request(self,request):
		print('a')

	def process_response(self,request,response):
		print('a1')
		return response


class Row2(MiddlewareMixin):
	def process_request(self, request):
		print('b')
		# return HttpResponse('b stop')


	def process_response(self, request, response):
		print('b1')
		return response

class Row3(MiddlewareMixin):
	def process_request(self, request):
		print('c')

	def process_response(self, request, response):
		print('c1')
		return response
